﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TKToXML
{
    public class HaiQuan
    {
        public string MaHQ { get; set; }
        
        public string TenHQ
        {
            get
            {
                using (var context = new ECUSTOMSEntities())
                {
                    var haiQuan = context.SHAIQUANs.Where(hq => hq.Ma == MaHQ).First();

                    return haiQuan.Ten_U;
                }
            }
        }
    }
}
